#ifndef TABWIDGETS_H
#define TABWIDGETS_H

#include <QDialog>
#include <QTime>

QT_BEGIN_NAMESPACE
class QHBoxLayout;
class QVBoxLayout;
class QTextEdit;
class QFormLayout;
class QTreeWidget;
class QTreeWidgetItem;
QT_END_NAMESPACE

class GeneralTab : public QDialog
{
public:
    GeneralTab(QWidget *parent = 0);
    void setGeneralTab(const QString &fileName, const int &recvId);

private:
    QTextEdit *textEdit;
    QVBoxLayout *mainLayout;
};

class logTab : public QDialog
{
    Q_OBJECT

public:
    logTab(QWidget *parent = 0);
    void setlogTab(const QTime &logTime, const QString &logMessage);
    void clearLogTab();

private:
    QTreeWidget *logView;
    QTreeWidgetItem *item;
    QHBoxLayout *mainLayout;
};

#endif // TABWIDGETS_H
